Repository navigation
Conversation
Preserve the opt-in investigation for #536 before reviewing the shared refactor and expanding worker/browser coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add an application-owned worker example, Chromium/Firefox/WebKit coverage, explicit cancellation and cleanup checks, and broader performance and process-memory measurements for #536. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain the opt-in live-test work while keeping this browser prototype isolated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document the 424 passing ordinary tests, disabled live suite, and both browser memory ceilings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Eliminate the closed-validator compiled-module retaining path. Add independent stability and Unicode regressions, confirm the Unicode failure on pristine main, and document the verified retail Firefox dedicated-worker comparison. Keep the two upstream conformance failures explicit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep hosting application-owned. Verify CSP, compressed immutable artifacts, encoding negotiation, conditional requests, and worker loading errors across the browser matrix. Preserve the separate Unicode conformance gates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| } | ||
| const qualities = new Map(); | ||
| for (const entry of header.split(",")) { | ||
| const match = /^\s*([a-z0-9!#$%&'*+.^_`|~-]+)\s*(?:;\s*q\s*=\s*(0(?:\.\d{0,3})?|1(?:\.0{0,3})?))?\s*$/i.exec(entry); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Draft investigation for #536, under #534. This is an opt-in prototype for design review, not a supported browser release or a request to merge an experimental compiler into main.
7.1.0-dev.20261030.1; verify version, length, and SHA-256 before compiling. Make loading, cancellation, errors, independent validator ownership, and disposal explicit.The shared refactor was reviewed before adding the worker example. The minimal library, enum wire mapping, diagnostic normalization, and model protocol definitions remain unchanged; existing native diagnostic and CJS/ESM compatibility tests cover the new internal boundary.
Verification
Windows, Node.js 24.22.1, after integrating main's opt-in live-test work:
typescript:npm run build-allandnpm testwithTYPECHAT_LIVE_TESTS=0-- 424 ordinary tests passed; the live API suite remained disabled.TYPECHAT_STABILITY_BROWSERS=1: 34 passed, 2 failed, 0 skipped. The two failures independently assert the declared Unicode enum value on stable native and pinned WASM; they remain explicit shipping gates. The 58-outcome compatibility corpus still passes, demonstrating why parity alone is insufficient.git diff --checkpassed.All model responses were synthetic. No live model calls or credentials were used. Tests manage and close their own browsers, workers, and loopback servers.
Browser hosting follow-up
wasm-unsafe-eval, not general JavaScript eval or inline scripts/styles. Both the document and worker receive the policy. Real-page eval blocking and explicit failure without WASM permission pass in all three engines.Vary: Accept-Encoding, and correct HEAD/304/error handling.This follow-up changes only the private experiment's example, tests, and documentation. Library validation and dependency manifests remain unchanged; the separate Unicode gates are still failing rather than suppressed.
Follow-up findings and remaining conformance blocker
xis rejected by both backends. It also reproduces on an untouched main snapshot at 0ef51b0, before this refactor. All 21 library source/runtime-manifest files were verified against that commit, allowing only Git's Windows line-ending conversion. Original build and the leading-BOM control pass; the declared lone-surrogate/BOM value fails after successful schema preflight.20260516144017differs from Playwright's20260611193205. This does not certify WAN/mobile performance, retail memory costs, or a full retail-browser matrix.Ordinary repository CI does not run this separately installed experimental suite. Its green result must not hide the two known failing semantic gates. This remains a draft investigation, not a merge-ready implementation.
Important limits / not ready for main
typechat/tsentry point browser-compatible.The prototype README documents reproducible commands, measured results, provisional budgets, lifecycle trade-offs, upgrade/rollback, and outstanding merge gates:
Browser prototype README.
Keep #534 and #536 open. Any supported mainline integration still needs explicit upstream-stability/maintenance, API, performance, and compatibility decisions.